{% extends "OspOrderBundle::layout.html.twig" %}

{% block OspOrder_body %}
	<h3>Modification de la commande {{"(" ~ order.id ~ ")"}}</h3>

	<div class="well form-inline">
		<form method="post" {{ form_enctype(form) }}>
			
			<legend>Modifier une commande</legend>
			<table class="table table-striped">
				<thead>
					<tr>
						<th>Utilisateur</th>
						<th>Produits</th>
						<th>Statut</th>
					</tr>
				</thead>
				
				<tbody>
					<tr>
						<td>{{ form_widget(form.utilisateur, { value : order.utilisateur,'attr': {'class': 'input-small'} }) }}</td>
						<td>{{ form_widget(form.listeProduits, { value : order.listeProduits,'attr': {'class': 'input-small'} }) }}</td>
						<td>{{ form_widget(form.status, { value : order.status,'attr': {'class': 'input-small'} }) }}</td>
					</tr>	
				</tbody>
			</table>
			<input type="submit" class="btn btn-primary" value="Modifier Commande" style="margin-left:65%" />
			<a href="{{ path('osp_order_homepage') }}" class="btn btn-primary">Annuler<a/>
			{{ form_rest(form) }}
		</form>
	</div>

{% endblock %}